const iTable = resolve => require(['../components/iTable.vue'], resolve)

// 首页
const index = resolve => require(['../components/index/index'], resolve)


// 组件样例
const example = resolve => require(['../components/common/example'], resolve)
// 登录
const login = resolve => require(['../components/login/login'], resolve)
//注册
const register = resolve => require(['../components/register/register'], resolve)
// 新建
const newlybuild = resolve => require(['../components/newlybuild/newlybuild'], resolve)
// 最近
const lately = resolve => require(['../components/lately/lately'], resolve)
// 星标
const star = resolve => require(['../components/star/star'], resolve)

export const routes = [{
    path: '/',
    redirect: 'index',
    name: 'index',
    component: iTable,
    children: [{
        path: 'index',
        name: 'index',
        component: index,
        meta: {
            show: true,
        }
    }, {
        path: 'login',
        name: 'login',
        component: login,
        meta: {
            show: true,
        }
    },
        {
            path: 'example',
            name: 'example',
            component: example,
            meta: {
                show: true,
            }
        },{
        path: 'register',
        name: 'register',
        component: register,
        meta: {
            show: true,
        }
    }, {
        path: 'newlybuild',
        name: 'newlybuild',
        component: newlybuild,
        meta: {
            show: true,
        }
    }, {
        path: 'lately',
        name: 'lately',
        component: lately,
        meta: {
            show: true,
        }
    }, {
        path: 'star',
        name: 'star',
        component: star,
        meta: {
            show: true,
        }
    }]
}]
